set BASE_DIR based on app module