Use getcwd to replace "." in the path