Changed the way the Applications directory is accessed