make app_dir more crossplatform