I am not a fan of having code differ between development
and production. Basically you have a portability problem
here. Read this excellent advice on
and my notes
on how to interpret it. If you
do it right you should have a very small number of key
modules that set up your environment and then have your
development code run exactly the same way in production.
This will be a simpler environment to work in, be easier
for development, easier for testing, and you will be able
to avoid fears that the differences between development
and production are biting you yet again...