Fix typos in the bash function
Fix IdFromPath