Renamed settings variable app_name to app_dir for clarity.