Configuring static and media root from environment