fixing some stupid cross platform path/dir issues