Added STAGE_DIR environment variable to work with autoload method on stage server