Script errors on Apple MacBookPro 9.2

HELP!
Laptop: Apple MacBookPro 9.2

I have already enabled services.envfs.enable = true; and included this in imports:*

"builtins.fetchTarball "https://github.com/Mic92/envfs/archive/main.tar.gz"
    }/modules/envfs.nix"

But, i get the following errors:

/run/current-system/sw/bin/make-executable: line 1: $'\r': command not found
/run/current-system/sw/bin/make-executable: line 2: $'\r': command not found
/run/current-system/sw/bin/make-executable: line 3: $'\r': command not found
/run/current-system/sw/bin/make-executable: line 4: $'\r': command not found
/run/current-system/sw/bin/make-executable: line 9: $'\r': command not found
/run/current-system/sw/bin/make-executable: line 12: $'\r': command not found
find: missing argument to `-exec'
: numeric argument requiredmake-executable: line 16: exit: 1

My scripts and configurations run perfectly well on my other intel based machines.

Any help would be appreciated.
cheers