Fixing paths when server is run from other directories