Standardise path and throw exception if there is no executable file.