Fixed bug with selecting history
Removed debug msg
Made sure active_mask() is end-padded with False
path_stack.c is included conditionally depending on unistd.h header