Added stdin support, fixed (or broke) paths