Fix the way we obtain filePath for WP8 and format the code.

Placing the `else` keyword on a new line doesn't look good for me.