made it compatible with windows symlinks (but uncompatible with linux)