Update: Change current_dir to target the dir instead of file.
Update: Change var name strip_dir to strip_target to be more clear that the one to be stripped is the target_dir.