Fixed errors involving APP_DIR not being in quotes and the  variable not being used in the / route