Pyramid runs smooth now

Fixed env variable changes and path issues, mainly figured out from error_logs.