added check to see if in applications folder