check and remove broken links

`os.path.exists` will return `False` when a link already exists but its broken, so trying to symlink the file again with same name raises an error and kills the program. So its better to remove the broken link (if any) before trying symlink.

P.S: I have nothing to do with removing the trail spaces in some line :D