Added better method to retrieve profile folder