Checking for dirty and using tag command
Fixing CWD issue