Updated current path for static files depending on Env

This will only switch to the new method if the environment is not 'development' or 'test', and it doesn't read how the current path is read.