Replaced INPUT with INPUTCMD. Big fix.

Purely by coincidence, the `$INPUT` command seems to return the relative directory and I shouldn't have used it to define variables. Changed to a more reasonable `$INPUTCMD` and everything seems far more like what it should be.