Fixed Grant System
Compatibilty with linux vs Windows