Determines path to public folder at runtime.