Remove unnecessary parenthesis.
Remove exclude method.

Better use something like https://github.com/arian/envarconst
When watching, only rebuild once when multiple files change instantly.
Fix bug where AMD files would be placed outside the output directory.

If the required files are higher in the directory tree, the file ended up in a
parent directory of the output directory, which is bad. Now it is renaming
files so everything is placed nicely in the output directory.