fixed typo in module check for APPLICATION_PATH