Fixed variable typo
Fixed #1 by not allowing slashes in the filename