Bump node in Cycles, with an OSL script -- am I doing it wrong?
Add a Texture Coordinates node, and possibly a vector Mapping node and feeding that into your scripts Vector input.



Even for generated coordinates I've seen better results using a texture input and mapping node for vector input over default coordinates received within osl scripts.