Update appPath conditional statement

Change conditional statement to be outside the try/catch statement in case the bower.json file loads but doesn't include the appPath variable.