Fix bug in redirecting file output to /dev/null

was $ instead of &