Properly escape $(pwd)
Add some debugging data