Added correct regex to improve scratchpad abilities
Removed moc last_directory