Fixing app dir variable