endswith for checking symlink for main program