improve spinMyR to work with both absolute or relative directories