Added BASE constant based on cwd