Attempt at making --portable work on windows.