Refactored the GetExecutionFilePath to simpler code only has 1 conditional now.