Added {WORKDIR} macro.
Can now handle samples from a directory.