Fix getting app dir path