Added [abort] to all functions

This stops it from running cmake in cwd when cd fails