Took out file extention from path calculation