latter is just DRY fix, symlink check is redundant as it is already defined in copyfile. It looks that copyfileordir() should be changed to copyfile() though. Should I change or remove those at all?