fixes permission denied issue on *nix

Relates #5