Adding app_dir to resource definition