Fixed executable and getName uses path.join()

fixes #5 & #6