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

+1