Added function to strip the leading folder.