Fixed getenv buffer allocation on Windows (Fixes issue 161).
Modified -L option to just add the given path if it's directory.